<template>
  <el-container class="main-caontainer">
    <el-aside :width="collapse ? '64px' : '200px'">
      <MenuAsideVue></MenuAsideVue>
    </el-aside>
    <el-container class="warp">
      <el-header>
        <CommonHeaderVue></CommonHeaderVue>
      </el-header>
      <el-main>
        <CommonTabsVue></CommonTabsVue>
        <div class="content">
          <router-view></router-view>
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import MenuAsideVue from "@/components/layout/MenuAside.vue";
import CommonHeaderVue from "@/components/layout/CommonHeader.vue";
import CommonTabsVue from "../components/layout/CommonTabs.vue";
import { useStore } from "vuex";
import { computed } from "vue";
const store = useStore();
const collapse = computed(() => {
  return store.state.menu.collapse;
});
</script>

<style lang="scss" scoped>
:deep(.el-tabs__header.is-top) {
  margin: 0;
}
.main-caontainer {
  height: 100%;
  .el-aside {
    height: 100%;
  }
  .warp {
    height: 100%;
    .el-header {
      height: 40px;
    }
    .el-main {
      padding: 0;
      .content {
        padding: 15px 20px;
        height: calc(100% - 80px);
        overflow-y: auto;
      }
    }
  }
}
</style>
